package com.api.openfeign.client;


import com.api.openfeign.config.OpenFeignConfig;
import com.api.openfeign.dto.ProductInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "product-service",configuration = OpenFeignConfig.class)
public interface ProductClient {
    @GetMapping("product/index/{productId}")
    ProductInfoDto getProductId(@PathVariable("productId") String productId);
}
